package org.travel.app.entity.spots;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;
import org.travel.app.entity.BaseReservation;

import java.time.LocalDate;


/**
 * @author nmm
 * @date 2024-12-2024/12/8
 * @deriction 用户预约的景点票实体
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SpotsReservation extends BaseReservation {
    /**
     * 景点预约ID
     */
    private Integer spotsReservationId;

    /**
     * 景点ID
     */
    private Integer spotId;


    /**
     * 访问日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate visitDate;

    /**
     * 景点预约人数
     */
    private Integer numberOfPeople;

    /**
     * 特殊需求
     */
    private String specialRequests;

    /**
     * 预约的景点票id
     */
    private Integer spotsTicketId;


    /**
     * 景点票预约标题
     */
    private String reservationTitle;

    /**
     * 使用方式
     */
    private String reservationUse;

    /**
     * 库存类型id
     */
    private Integer stockId;


    /**
     * 套餐id
     */
   private SpotsTicketPackage spotsTicketPackage;

}